* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(50, 50, 50, 0.2) 0%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(32, 58, 67, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(72, 219, 251, 0.1);
    box-shadow: 5px 0 15px rgba(72, 219, 251, 0.1);
    color: white;
    padding: 30px 0;
    position: fixed;
    height: 100%;
    animation: glow 4s ease-in-out infinite alternate;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #48dbfb;
    text-shadow: 0 0 10px rgba(72, 219, 251, 0.5);
    position: relative;
}

.sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #48dbfb, transparent);
}

.sidebar ul {
    list-style-type: none;
    padding: 0 10px;
}

.sidebar ul li {
    margin: 5px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(72, 219, 251, 0.05);
}

.sidebar ul li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar ul li:hover a {
    border-color: rgba(72, 219, 251, 0.3);
    background: rgba(72, 219, 251, 0.1);
    box-shadow: 0 0 15px rgba(72, 219, 251, 0.2);
    transform: translateX(5px);
}

/* Main content */
.main-content {
    margin-left: 280px;
    padding: 30px;
    width: calc(100% - 280px);
    max-width: 1400px;
}

h1 {
    text-align: center;
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.2);
    color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-shadow: 0 0 10px rgba(72, 219, 251, 0.5);
    position: relative;
    overflow: hidden;
}

h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #48dbfb, transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.section {
    background: rgba(25, 42, 49, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 219, 251, 0.1);
    box-shadow: 0 0 20px rgba(72, 219, 251, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(72, 219, 251, 0.3);
    box-shadow: 0 0 30px rgba(72, 219, 251, 0.2);
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 22px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Form styling */
form {
    background: rgba(15, 32, 39, 0.9);
    border: 1px solid rgba(72, 219, 251, 0.1);
    padding: 25px;
    border-radius: 12px;
}

form label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

form input, form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(72, 219, 251, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(72, 219, 251, 0.05);
    color: #fff;
}

form input:focus, form select:focus {
    outline: none;
    border-color: #48dbfb;
    box-shadow: 0 0 15px rgba(72, 219, 251, 0.3);
}

form button {
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 219, 251, 0.2), transparent);
    transition: 0.5s;
}

form button:hover::before {
    left: 100%;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.3);
}

/* Button container */
.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.button-container button {
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 219, 251, 0.2), transparent);
    transition: 0.5s;
}

.button-container button:hover::before {
    left: 100%;
}

.button-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.3);
}

/* List styling */
.section ul {
    list-style: none;
    padding: 0;
}

.section li {
    background: rgba(72, 219, 251, 0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 2px solid #48dbfb;
    transition: all 0.3s ease;
    position: relative;
}

.section li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #48dbfb;
    transform: scaleY(0);
    transition: transform 0.3s;
}

.section li:hover::before {
    transform: scaleY(1);
}

.section li:hover {
    transform: translateX(5px);
    background: #f1f3f5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
        padding: 15px;
    }

    .button-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }
}

/* 添加动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(72, 219, 251, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(72, 219, 251, 0.4);
    }
}

/* 添加扫描线动画 */
.section::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #48dbfb, transparent);
    animation: scanning 3s linear infinite;
}

@keyframes scanning {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* 添加新的样式 */
.form-subtitle {
    color: #48dbfb;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(72, 219, 251, 0.2);
}

.file-upload-container {
    margin-bottom: 20px;
    position: relative;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(72, 219, 251, 0.05);
    border: 2px dashed rgba(72, 219, 251, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: rgba(72, 219, 251, 0.1);
    border-color: rgba(72, 219, 251, 0.5);
}

.file-label i {
    font-size: 24px;
    color: #48dbfb;
}

.file-name {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.upload-btn {
    width: 100%;
    margin-top: 10px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    background: rgba(72, 219, 251, 0.05);
    border: 1px solid rgba(72, 219, 251, 0.2);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.search-btn {
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.3);
    color: white;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.3);
}

.search-result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(72, 219, 251, 0.05);
    border-radius: 8px;
    border-left: 2px solid #48dbfb;
}

/* 用户管理样式 */
.user-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.user-stat-card {
    background: rgba(72, 219, 251, 0.05);
    border: 1px solid rgba(72, 219, 251, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.user-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(72, 219, 251, 0.2);
    border-color: rgba(72, 219, 251, 0.4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(72, 219, 251, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 24px;
    color: #48dbfb;
}

.stat-info h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #48dbfb;
    text-shadow: 0 0 10px rgba(72, 219, 251, 0.3);
}

.user-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.user-list h3 {
    color: #48dbfb;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(72, 219, 251, 0.2);
}

.user-table-container {
    background: rgba(72, 219, 251, 0.05);
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(72, 219, 251, 0.1);
}

.user-table th {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    background: rgba(72, 219, 251, 0.1);
}

.user-table tr:hover {
    background: rgba(72, 219, 251, 0.05);
}

.btn--primary {
    background-color: #1e76ff;
    border: none;
    color: white;
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn--primary:hover {
    background-color: #175cc7;
}

.w-100 {
    width: 100%;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 3px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 财务统计卡片 */
.finance-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.finance-stat-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.finance-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(114, 101, 227, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7265E3 0%, #9188EC 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* 图表容器 */
.chart-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.chart-container canvas {
    max-height: 300px;
}

/* 表格样式已存在，无需重复定义 */

/* 操作按钮布局 */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* 图标 */
.navbar-brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand-desktop {
    display: flex;
    align-items: center;
}

.navbar-brand-desktop:hover .navbar-brand-text {
    color: var(--primary-color);
}

/* 角色选择器样式 */
.role-select-box {
    position: relative;
    max-width: 150px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(72, 219, 251, 0.1);
}

.role-select {
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #fff;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s;
}

.role-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(72, 219, 251, 0.3);
}

.role-select option {
    background: rgba(15, 32, 39, 0.95);
    color: #fff;
}

/* 滚动条样式 */
.role-select::-webkit-scrollbar {
    width: 6px;
}

.role-select::-webkit-scrollbar-track {
    background: rgba(72, 219, 251, 0.1);
}

.role-select::-webkit-scrollbar-thumb {
    background: #48dbfb;
    border-radius: 3px;
}

/* 用户管理按钮样式 */
.user-action-btn {
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px; /* 添加一些间距 */
    position: relative;
    overflow: hidden;
}

.user-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 219, 251, 0.2), transparent);
    transition: 0.5s;
}

.user-action-btn:hover::before {
    left: 100%;
}

.user-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.3);
}

#globalBackBtn.back-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(72, 219, 251, 0.1);
    border: 1px solid rgba(72, 219, 251, 0.3);
    border-radius: 6px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-decoration: none;
}

#globalBackBtn.back-btn:hover {
    background: rgba(72, 219, 251, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(72, 219, 251, 0.2);
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    fill: #48dbfb;
}

.btn-label {
    color: #48dbfb;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(72, 219, 251, 0.3);
}

/* 侧边栏存在时的适配 */
@media (min-width: 769px) {
    #globalBackBtn.back-btn {
        right: calc(280px + 30px); /* 侧边栏宽度 + 间距 */
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    #globalBackBtn.back-btn {
        right: 15px;
        top: 15px;
        padding: 6px 12px;
    }

    .btn-label {
        display: none;
    }

    .btn-icon {
        margin-right: 0;
    }
}

.filter-container {
    background: rgba(72, 219, 251, 0.05);
    border: 1px solid rgba(72, 219, 251, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-input {
    background: rgba(72, 219, 251, 0.05);
    border: 1px solid rgba(72, 219, 251, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.filter-input:focus {
    border-color: #48dbfb;
    box-shadow: 0 0 8px rgba(72, 219, 251, 0.3);
}

.filter-btn {
    background: linear-gradient(45deg, #0f2027, #2c5364);
    border: 1px solid rgba(72, 219, 251, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 219, 251, 0.3);
}